package com.changgou.user.feign;

import com.changgou.entity.Result;
import com.changgou.user.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * Created by roshellc on 2020/7/30.
 */


@FeignClient(name = "user")
public interface UserFeign {

    /***
     * 根据ID查询数据
     * @param username
     * @return
     */
    @GetMapping("/user/{username}")
    public Result findById(@PathVariable String username);
}
